package com.honghu.paylibrary.bean;


import com.honghu.paylibrary.bean.BaseEnumBean;
import com.honghu.paylibrary.enums.PayType;

public class PayTypeBean extends BaseEnumBean<PayType> {

    private boolean isSelect;

    private String payUrl;
    private String payId;

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public PayTypeBean(int payType) {
        super(payType);
    }

    public String getPayId() {
        return payId == null ? "" : payId;
    }

    public void setPayId(String payId) {
        this.payId = payId;
    }

    public String getPayUrl() {
        return payUrl == null ? "" : payUrl;
    }

    public void setPayUrl(String payUrl) {
        this.payUrl = payUrl;
    }

    public PayTypeBean(PayType value) {
        super(value);
    }

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }

    //设置item 枚举
    @Override
    public PayType setValue(int value) {
        PayType payType = PayType.enumOfValue(value);
//        PayType payType = new PayType(value,this.name);

//        payType.setDesc(this.name);
        this.value = payType;
        return payType;
    }


}
